package seven.test_7_28;

public class Solution {
    public int sumOfUnique (int[] nums) {
        // write code here
        int[] arr = new int[101];
        int count = 0;
        for(int i = 0; i < nums.length; i++) {
            arr[nums[i]]++;
        }
        for (int i = 1; i < 101; i++) {
            if(arr[i] == 1) {
                count += arr[i];
            }
        }
        return count;
    }
}
